package com.sofa.api.client.logging.fallback;

import com.sofa.api.client.logging.LoggingClient;


import org.springframework.cloud.openfeign.FallbackFactory;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class LoggingClientFallBack implements FallbackFactory<LoggingClient> {
    @Override
    public LoggingClient create(Throwable cause) {
        log.error("调用日志服务出现异常", cause);
        return new LoggingClient() {

        };
    }
}
